from selenium import webdriver
import time

driver = webdriver.Chrome() # 驱动默认会在本文件夹内先搜索
driver.get('https://www.12306.cn/index/')
data = driver.page_source
print(data)
time.sleep(5)
driver.quit()